package com.ruoyi.activity.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠活动信息对象 bm_preferential
 * 
 * @author ruoyi
 * @date 2023-08-08
 */
public class BmPreferential extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动id */
    private Long id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String preferentialName;

    /** 活动类型 1.秒杀 2.百元购 3.双11活动 */
    @Excel(name = "活动类型 1.秒杀 2.百元购 3.双11活动")
    private Long preferentialType;

    /** 活动开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "活动开始日期", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date startTime;

    /** 活动结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "活动结束日期", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date endTime;

    /** 活动状态 0.禁用 1.启用 */
    @Excel(name = "活动状态 0.禁用 1.启用")
    private Long status;

    /** 备注 */
    @Excel(name = "备注")
    private String mark;

    /** #优惠活动商品信息信息 */
    private List<BmPreferentialGoods> bmPreferentialGoodsList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPreferentialName(String preferentialName) 
    {
        this.preferentialName = preferentialName;
    }

    public String getPreferentialName() 
    {
        return preferentialName;
    }
    public void setPreferentialType(Long preferentialType) 
    {
        this.preferentialType = preferentialType;
    }

    public Long getPreferentialType() 
    {
        return preferentialType;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setMark(String mark) 
    {
        this.mark = mark;
    }

    public String getMark() 
    {
        return mark;
    }

    public List<BmPreferentialGoods> getBmPreferentialGoodsList()
    {
        return bmPreferentialGoodsList;
    }

    public void setBmPreferentialGoodsList(List<BmPreferentialGoods> bmPreferentialGoodsList)
    {
        this.bmPreferentialGoodsList = bmPreferentialGoodsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("preferentialName", getPreferentialName())
            .append("preferentialType", getPreferentialType())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("mark", getMark())
            .append("bmPreferentialGoodsList", getBmPreferentialGoodsList())
            .toString();
    }
}
